
import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo: {},
    login:true,
    // isShowLoginRegBox: false, 
  },
  getters: {
  },
  mutations: {
    setUserInfo(state, userInfo) {
      state.userInfo = userInfo;
    },
    setLogin(state, login){
      state.login = login;
    },
  },
  actions: {
  },
  modules: {
  },
  plugins: [
    createPersistedState({
    })
  ]
})
